import request from '@/utils/request'
export default {

    // 栏目查询文章列表
    queryNavigationList(params) {
        return request({
            url: '/portalWebsite/article/queryList',
            method: 'get',
            params
        })
    },
    // 栏目查询N条文章文章（状态是启用的）
    queryByNavigationIdAndSize(size) {
        return request({
            url: `/portalWebsite/homepage/queryByNavigationIdAndSize?size=${size}`,
            method: 'get'
        })
    },
    //查询加载页
    queryLoadPage() {
        return request({
            url: `/portalWebsite/homepage/queryLoadPage`,
            method: 'get'
        })
    },
    //查询文章轮播图
    queryArticleCarouselChart() {
        return request({
            url: `/portalWebsite/homepage/queryArticleCarouselChart`,
            method: 'get'
        })
    },
    //（更多）根据栏目查询所有文章（状态是显示的）
    queryByNavigationId(navigationId) {
        return request({
            url: `/portalWebsite/homepage/queryByNavigationId?navigationId=${navigationId}`,
            method: 'get'
        })
    },
    //查询飘窗
    queryBayWindow() {
        return request({
            url: '/portalWebsite/homepage/queryBayWindow',
            method: 'get'
        })
    },
    //查询表彰
    queryCommendation() {
        return request({
            url: '/portalWebsite/homepage/queryCommendation',
            method: 'get'
        })
    },
    //查询专栏
    queryParentList() {
        return request({
            url: `/portalWebsite/homepage/queryParentList`,
            method: 'get'
        })
    },
    //查询轮播图
    queryCarouselChart(carouselChartTypeId) {
        return request({
            url: `/portalWebsite/homepage/queryCarouselChart?carouselChartTypeId=${carouselChartTypeId}`,
            method: 'get'
        })
    },
    //轮播图类型
    queryCarouselChartType() {
        return request({
            url: `/portalWebsite/homepage/queryCarouselChartType`,
            method: 'get'
        })
    },
    //查询图片栏目(最多返回两张)
    queryChart() {
        return request({
            url: '/portalWebsite/homepage/queryChart',
            method: 'get'
        })
    },
    queryNotice() {
        return request({
            url: '/portalWebsite/homepage/queryNotice',
            method: 'get'
        })
    },
    //查询值班表
    queryDuty() {
        return request({
            url: '/portalWebsite/homepage/queryToday',
            method: 'get'
        })
    },
    //查询值班表一周
    queryWeek() {
        return request({
            url: '/portalWebsite/homepage/queryWeek',
            method: 'get'
        })
    },
    //查询页脚内容
    queryEndPage() {
        return request({
            url: '/portalWebsite/homepage/queryEndPage',
            method: 'get'
        })
    },


    //查询政务公开
    queryGovernmentTransparencyPageList(data) {
        return request({
            url: `/portalWebsite/homepage/queryGovernmentTransparencyPageList?page=${data.page}&size=${data.size}`,
            method: 'get'
        })
    },


    //查询首页导航栏
    queryHomepageNavigation() {
        return request({
            url: '/portalWebsite/homepage/queryHomepageNavigation',
            method: 'get'
        })
    },

    //查询重大转载（状态是显示的）
    queryMajorReprints() {
        return request({
            url: '/portalWebsite/homepage/queryMajorReprints',
            method: 'get'
        })
    },

    //查询栏目
    queryNavigation() {
        return request({
            url: '/portalWebsite/homepage/queryNavigation',
            method: 'get'
        })
    },
    //查询常用系统
    queryPageList(data) {
        return request({
            url: `/portalWebsite/homepage/queryPageList?page=${data.page}&size=${data.size}`,
            method: 'get'
        })
    },
    //查询门户网站
    queryPortalWebsite() {
        return request({
            url: '/portalWebsite/homepage/queryPortalWebsite',
            method: 'get'
        })
    },
}